import { defineStore } from "pinia";
const useGptSoVitsState = () => {
  const port = useMyLocalStorage<string | number>("gptSoVitsPort", 0);
  const isStart = ref(false);
  return {
    port,
    isStart,
  };
};
export const gptSoVitsStore = defineStore("gptSoVitsStore", () => {
  const gptSoVitsState = useGptSoVitsState();
  const { port, isStart } = gptSoVitsState;
  const setGptSoVitsPort = (value: number) => {
    port.value = value;
  };
  return { port, setGptSoVitsPort, isStart };
});
